package com.sparrow.source.persistense.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sparrow.source.persistense.IasFace;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author bryceyung
 * @since 2024/11/20
 */
@Repository
public interface IasFaceMapper extends BaseMapper<IasFace> {

    /**
     * 批量新增
     * @param faceList
     * @return
     */
    Boolean batchInsert(@Param("faceList") List<IasFace> faceList);

    /**
     * 根据用户ID查询
     *
     * @param userId
     * @return
     */
    List<IasFace> selectByUserId(@Param("userId") Integer userId);

}
